/**
 * 
 */
package pt.inescid.components.console.commands;

import java.util.ArrayList;
import java.util.List;

import pt.inescid.components.console.Console;


/**
 * @author Sergio Esteves (sesteves at gsd.inesc-id.pt)
 *
 */
public class SubmitJobSampleCommand extends Command {

	public SubmitJobSampleCommand(Console console) {
		super(console);
	}

	public static final String CMD_NAME = "submit_job_sample";
	
	@Override
	public String getCmdName() {
		return CMD_NAME;
	}
	
	@Override
	public String synopsis() {
		return CMD_NAME + SYNTAX_SEPARATOR + "Submits the job sample";
	}

	@Override
	public void execute(String[] args) throws CommandException {
		List<String> input = new ArrayList<String>();
		input.add("./sample/chess2.pov");
		input.add("./sample/POVRAY.ini");
		String output = "GridP2P_chess2.ppm";		
		gridP2P.createJob("POVray", input, output);		
	}
}
